#ifndef _Wmi
#define _Wmi

#define _WIN32_DCOM
#include <iostream>
using namespace std;
#include <comdef.h>
#include <Wbemidl.h>

#pragma comment(lib, "wbemuuid.lib")


class Wmi {
public:
	IWbemLocator *pLoc;
	IWbemServices *pSvc;

	// Constructor
	Wmi();

	// Deconstructor
	~Wmi();

	// connect to local
	int init_local();

	// return wmi data, cpu percentage across all cores
	int getCpuPercent();
};

#endif // _Wmi